﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NJL.WebManage
{
    public partial class Top : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ImgBtn1_Click(object sender, ImageClickEventArgs e)
        {
            string ClickBtnID = ((ImageButton)sender).ID;

            string sql = "update RL_YG set YS='{0}' where YGBH='" + USER_ID + "'";
            string StylePath = null;
            switch (ClickBtnID)
            {
                case "Imgbtn1": StylePath = "Css/skin1.css";
                    break;
                case "Imgbtn2": StylePath = "Css/skin2.css";
                    break;
                case "Imgbtn3": StylePath = "Css/skin3.css";
                    break;
                case "Imgbtn4": StylePath = "Css/skin4.css";
                    break;
                case "Imgbtn5": StylePath = "Css/skin5.css";
                    break;
                default: StylePath = "Css/skin1.css";
                    break;


            }
            string FormatStr = string.Format(sql, StylePath);
            try
            {
                //Royal.DBUtility.DbHelperSQL.ExecuteSql(FormatStr);
                //Royal.Common.MessageBox.ResponseScript(this, "window.parent.location.href='Login.aspx'");
            }
            catch
            {

            }

        }

    }
}